package sixth.接口;

interface A3 {
    public String AUTHOR = "伍佰";

    public void printA();
}

interface B3 {
    public void printB();
}

interface C3 extends A3, B3 {
    public void printC();
}

class X3 implements C3 {
    public void printA() {
        System.out.println("A.......");
    }

    public void printB() {
        System.out.println("B.......");
    }

    public void printC() {
        System.out.println("C.......");
    }
}

public class 接口的多继承 {
    public static void main(String[] args) {
        X3 x3 = new X3();
        x3.printA();
        x3.printB();
        x3.printC();
    }
}
/*
D:\WorkSpaces\Java\jdk-21\bin\java.exe "-javaagent:D:\Software\IntelliJ IDEA\IntelliJ IDEA 2023.3.2\lib\idea_rt.jar=60554:D:\Software\IntelliJ IDEA\IntelliJ IDEA 2023.3.2\bin" -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath D:\WorkSpaces\JavaDevelopBase_start_329\out\production\JavaDevelopBase_start_329 sixth.接口.接口的多继承
A.......
B.......
C.......

Process finished with exit code 0
 */